# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-catalogue
pkgver=2.0.6
pkgrel=0
pkgdesc="Super lightweight function registries for your library"
url="https://github.com/explosion/catalogue"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/explosion/catalogue/archive/v$pkgver.tar.gz"

builddir=$srcdir/catalogue-$pkgver

build() {
	python3 setup.py build
}

check() {
	pytest-3 catalogue/tests/test_catalogue.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

sha512sums="
65df37550a4fddf8f17d0a46326c57237757eb0874c1a19f323c7c84da0d150cb3d0b4b6c010614a7ff1fcd3486ca039dc8800e09328579310637a79c53795fd  py3-catalogue-2.0.6.tar.gz
"
